package com.tc.zigbee.zcl.command;

import java.util.LinkedList;
import java.util.List;

import com.tc.util.DataUtil;

public class SceneMemberResponse extends AbstractZclCommand{
	public byte getStatus() {
		return status;
	}
	public short getGroupId() {
		return groupId;
	}
	byte status;
	byte capacity;
	short groupId;
	
	List<Byte> membership = new LinkedList<Byte>();
	public SceneMemberResponse(byte[] data){
		status = data[0];
		capacity = data[1];
		byte[] ai = new byte[2];
		ai[0] = data[2];
		ai[1] = data[3];
		groupId = DataUtil.shortValue(ai);
		
		byte c = data[4];
		for(int i = 0; i < c; i++){
				membership.add(data[5 + i]);
		}
			
		
		
	}
	public byte getCapacity() {
		return capacity;
	}
	public List<Byte> getMembership() {
		return membership;
	}
	
}
